package com.lomo.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by lomo on 2018/7/29.
 */

@RestController
public class DemoController {

    @RequestMapping("/demo")
    String demo() {
        return "demo.";
    }

    @RequestMapping("/hello")
    int hello() {
        return 123;
    }
}
